﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class HOCSINHBUS
    {
        HOCSINHDAO hs=new HOCSINHDAO();
        public List<HOCSINHDTO> dslop(int malop)
        {
            int _malop=malop;
            return hs.dslop(_malop);
        }
        public int them_hs(HOCSINHDTO hocsinh,int malop)
        {
            int kq= hs.them_hs(hocsinh,malop);
            return kq;
        }
        public int xoa_hs(int mahs)
        {
            return hs.xoa_hs(mahs);
        }
        public HOCSINHDTO lay_hocsinh(int mahs)
        {
            return hs.lay_hocsinh(mahs);
        }
        public int chinhsua_hs(HOCSINHDTO hocsinh,int malop_cu,int malop)
        {
            return hs.chinhsua_hs(hocsinh,malop_cu, malop);
        }
        //tim hoc sinh
        public List<HOCSINHDTO> TimhocSinh(string tenhs)
        {
            return hs.TimhocSinh(tenhs);
        }
    }
}
